#ifndef __DRV_TOUCH_I2C_PORT_H
#define __DRV_TOUCH_I2C_PORT_H

#include <rtthread.h>
#include <rtdevice.h>
#include "drv_gpio.h"
#include "drv_i2c.h"

int touch_i2c_wr_bytes(uint8_t dev_addr, uint8_t * wbuf, int wlen, uint8_t * rbuf, int rlen);

int touch_i2c_write_bytes(uint8_t dev_addr, uint8_t * buf, int len);

int touch_i2c_read_bytes(uint8_t dev_addr, uint8_t * buf, int len);

int touch_i2c_init(void);

#endif
